<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>班集-班级圈-事件详情</title>
<link rel="stylesheet" href="/f/assets/iconfont/iconfont.css" />
<link media="all" href="/f/assets/css/one.css" rel="stylesheet">
<link rel="stylesheet" href="/f/assets/css/header.css" />
<link rel="stylesheet" href="/f/assets/css/circle.css" />
<script type="text/javascript" src="/f/assets/js/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="/f/assets/js/header.js"></script>
<style type="text/css">
</style>
</head>
<body>
<jsp:include page="/include_header" />
	<jsp:include page="/include_content">
		<jsp:param name="i" value="4" />
	</jsp:include>

	<div class="" id="row1">

		<div class="tabmain wrapper">
			<div class="outerWrap">

				<div class="container">
					<div class="content">
						<div class="tabContent">
						<a href="/circle/index">&lt;&lt;返回班级圈</a>
							<div class="cc-header">
								<h1 class="cc-title">“${evt.title }”</h1>
								<hr class="cc-hr"/>
							</div>
							<div class="cc-content">
								<p><span class="text text-warm">【楼主】【<c:if test="${evt.type==73 }">个人</c:if><c:if test="${evt.type==71 }">集体</c:if>活动】</span>${publisher.univName }&nbsp;${publisher.collegeName }&nbsp;${publisher.profName }&nbsp;${publisher.clzName }&nbsp;${publisher.name }&nbsp;</p>
								<p><span class="text text-warm">【描述】</span>${evt.desc }</p>
								<p><span class="text text-warm">【赞】</span>${evt.npraise }
									
									<button onclick="praise(${evt.id });">赞</button>
								</p>
								<p>${evt.pics }</p>
							</div>
							<div class="cc-header">
								<h1 class="cc-title">评论（${evt.ncomment }）</h1>
								<hr class="cc-hr"/>
							</div>
							<div class="cc-content">
								<label class="cc-label">
									我也说一句：
								</label>
								<div class="cc-body">
									<textarea rows="4" cols="60"></textarea>
									<p><button class="ui-button ui-button-morange">确定</button></p>
								</div>
								<label class="cc-label">
									<a href="#">甲学生</a>：
								</label>
								<div class="cc-body">
									<div class="cc-remark">评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容<a href="#">回复</a></div>
									<div class="cc-timestamp">2015-02-14 14:08 </div>
								</div>
								<label class="cc-label">
									<a href="#">乙学生</a>回复<a href="#">甲学生</a>：
								</label>
								<div class="cc-body">
									<div class="cc-remark">评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容
									评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容评论内容<a href="#">回复</a></div>
									<div class="cc-timestamp">2015-02-14 14:08 </div>
								</div>
							</div>
						</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<jsp:include page="/include_footer" />
<script type="text/javascript">
function praise(evtid){
	$.get('/evtp/ins?evtid='+evtid,'json')
	.done(function(data){
		if(data){
			location.reload();
		}
		else alert('你已赞过！');
	})
}
</script>
</body>
</html>